home *** CD-ROM | disk | FTP | other *** search
/ Internet Info 1994 March / Internet Info CD-ROM (Walnut Creek) (March 1994).iso / security / crack_4.1-tar / Scripts / mrgfbk < prev    next >
Encoding:
Text File  |  1992-06-25  |  1.2 KB  |  54 lines

  1. #!/bin/sh
  2.  
  3. ###
  4. # This program is copyright Alec Muffett 1991, and is provided as part of
  5. # the Crack v4.0 Password Cracking package.  The author disclaims all
  6. # responsibility or liability with respect to it's usage or its effect
  7. # upon hardware or computer systems, and maintains copyright as set out in
  8. # the "LICENCE" document which accompanies distributions of Crack v4.0 and
  9. # upwards. So there...
  10. ###
  11.  
  12. ###
  13. # mrgfbk - a shell script to merge all of your feedback files into one
  14. # before starting a Crack -F on a set of new dictionaries. This program
  15. # is called from "Scripts/spotless"
  16. ###
  17. # mrgfbk takes all the feedback files and filters out all the GUESSED
  18. # passwords, and saves them to a new feedback file.  The UNGUESSED
  19. # passwords are deleted, so that the new dictionaries can have a go at
  20. # them 
  21. ###
  22.  
  23. tf=./mfb$$
  24.  
  25. echo ""
  26. echo "Saving all CRACKABLE passwords.
  27. Do you also want to save your UNCRACKABLE passwords ?
  28. Answer NO if you have changed some rules or modified source dictionaries
  29. (default: yes) "
  30.  
  31. read answer
  32.  
  33. case $answer in
  34.     [Nn]*)
  35.         cat Runtime/F* |
  36.         awk -F: '$3 == "Y"' |
  37.         sort |
  38.         uniq > $tf
  39.         ;;
  40.     *)
  41.         cat Runtime/F* |
  42.         sort |
  43.         uniq > $tf
  44.         ;;
  45. esac
  46.  
  47. rm -f Runtime/F*
  48.  
  49. cp $tf Runtime/F.merged
  50.  
  51. rm -f $tf
  52.  
  53. exit 0
  54.